package com.wffz.controller;

import com.wffz.po.WffzTest;
import com.wffz.service.TestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "测试")
@Slf4j
@RestController
public class HelloController {


    @Resource
    private TestService testService;

    @ApiOperation(value = "hello test ")
    @GetMapping("hello")
    public String hello() {
        List<WffzTest> list = testService.queryTest();
        log.info("list size {}", list.size());
        return "hello world";
    }
}
